/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.googlecode.jsimplemarket.model;

import java.util.List;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 *
 * @author Alexandru.Codescu
 */
@Entity
@Table(name = "randuri")
public class Rand extends AbstractNomenclator {
    private List<SpatiuComercial> spatiiComerciale;

    @OneToMany(fetch = FetchType.EAGER)
    @JoinColumn(name = "ID_RAND")
    public List<SpatiuComercial> getSpatiiComerciale() {
        return spatiiComerciale;
    }

    public void setSpatiiComerciale(List<SpatiuComercial> spatiiComerciale) {
        this.spatiiComerciale = spatiiComerciale;
    }
}
